package com.weight.system.project.service.impl;

import com.weight.system.project.PO.ProjectFileRal;
import com.weight.system.project.service.ProjectFileRalService;
import com.weight.system.project.DAO.ProjectFileRalMapper;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import org.springframework.transaction.annotation.Transactional;
import com.weight.common.util.CommonUtils;
import lombok.extern.slf4j.Slf4j;

/**
 * 项目-文件类型-附件关系
 */
@Service
@Transactional
@Slf4j
public class ProjectFileRalServiceImpl implements ProjectFileRalService {

	@Autowired
	private ProjectFileRalMapper projectFileRalMapper;


	/**
	 * ID查询项目-文件类型-附件关信息
	 * @param map
	 * @return
	 */
	@Override
	public List<ProjectFileRal> findByProjInfoId(Map map){
		List<ProjectFileRal> projectFileRalList=projectFileRalMapper.findByProjInfoId(map);
		return projectFileRalList;
	}

	/**
	 * 批量添加项目-文件类型-附件关
	 * @param projectFileRalList
	 */
	@Override
	public void insertProjectFileRalBatch(List<ProjectFileRal> projectFileRalList){
		projectFileRalMapper.insertProjectFileRalBatch(projectFileRalList);
	}

	/**
	 * 物理删除项目-文件类型-附件关
	 * @param map
	 */
	@Override
	public void deleteByProjInfoId(Map map){
		projectFileRalMapper.deleteByProjInfoId(map);
	}

}